.eformButtonGroupBox {
  display: inline-block;
  box-sizing: border-box;
  padding: 0 15px;
  line-height: calc(2.29em - 2px);
  vertical-align: top;
  border: 1px solid var(--inbiz-color-border-base);
  border-radius: var(--inbiz-border-radius-base);
  &.padding_15 {
    padding: 0 15px;
  }
  &.padding_10 {
    padding: 0 10px;
  }
  &:hover {
    border-color: var(--inbiz-color-primary);
    .buttonGroupItem {
      color: var(--inbiz-color-primary);
    }
  }
}
.eformButtonGroupButtons {
  --borderColor: var(--inbiz-color-border-base);
  &:hover {
    --borderColor: var(--inbiz-color-primary);
  }
  &.iconPosition_left {
    button:last-child {
      padding-left: 10px;
    }
  }
  &.iconPosition_right {
    button:first-child {
      padding-right: 10px;
    }
  }
  .iconBtn {
    width: 28px;
  }
  button {
    height: 2.29em;
    color: var(--inbiz-color-text);
    font-size: var(--inbiz-font-size-base);
    vertical-align: top;
    border-color: var(--inbiz-color-border-base);
    &:focus {
      color: var(--inbiz-color-text);
      border-color: var(--borderColor);
    }
    &:hover {
      color: var(--inbiz-color-primary);
    }
    &:first-child:not(:last-child) {
      border-right: 0;
      border-top-left-radius: var(--inbiz-border-radius-base);
      border-top-right-radius: 0;
      border-bottom-right-radius: 0;
      border-bottom-left-radius: var(--inbiz-border-radius-base);
    }

    &:last-child:not(:first-child) {
      border-left-color: var(--borderColor);
      border-top-left-radius: 0;
      border-top-right-radius: var(--inbiz-border-radius-base);
      border-bottom-right-radius: var(--inbiz-border-radius-base);
      border-bottom-left-radius: 0;
    }
  }
  &.left button:last-child {
    padding-left: 10px;
  }
  &.right button:first-child {
    padding-right: 10px;
  }
}
.eformButtonGroupBox,
.eformButtonGroupOverlay {
  .buttonGroupItem {
    display: inline-block;
    height: 30px;
    color: var(--inbiz-color-text);
    font-size: var(--inbiz-font-size-base);
    &.right .buttonIcon {
      margin-left: 10px;
    }
    &.left .buttonIcon {
      margin-right: 10px;
    }
  }
}
.eformButtonGroupOverlay {
  .borderBottom {
    border-bottom: 1px solid #ddd;
  }
  .buttonGroupItem {
    height: 32px;
    color: var(--inbiz-color-heading);
    line-height: 32px;
    &:hover {
      color: var(--inbiz-color-heading);
    }
  }
  .ant-dropdown-menu {
    padding: 8px;
    border-radius: var(--inbiz-border-radius-base);
  }
  .ant-dropdown-menu-item {
    padding: 0 8px;
  }
}
.EformButtonGroupContainer {
  text-align: center;
}

.eformButtonGroupModal .currentModal-toolbar {
  .ant-btn-text {
    padding: 4px;
    color: #000;
    .anticon {
      font-size: 16px;
    }
    &:hover {
      color: var(--inbiz-color-primary);
      background-color: inherit;
    }
  }
}
